﻿using Awsc.DataAcquisitionSys.Core.Models.ServiceModels;
using Awsc.DataAcquisitionSys.Core.Service.Alarm.Interfaces;

namespace Awsc.DataAcquisitionSys.Core.Service.Alarm.Implement
{
    public class LogAlarmMethod : IAlarmMethod
    {
        public string Name  => "日志报警";   

        public async Task ExecuteAsync(AlarmInformation alarm)
        {
            Console.WriteLine($"Log {alarm.AlarmLevel}  {alarm.RuleName} {alarm.OccurredAt}, Data: {alarm.GetSensorDataString()}");
        }
    }
}
